window.AppConst = window.AppConst || {};


AppConst.shareImageUrl = {
    TEST: "",
    RELEASE: "https://xxxxxx/slideyShare.png",
};

AppConst.WS_SERVER = {
    TEST: "wss://",
    RELEASE: "wss://",
};
AppConst.HTTP_SERVER = '';
const servers = {
    TEST: 'TEST',
    RELEASE: 'RELEASE',
};


// AppConst.PayId = {
//     VideoMain: 0, //主界面视频
//     VideoSign: 1,//主界面签到视频
//     VideoGame: 2,// 游戏界面视频
//     VideoRelive: 3,// 游戏界面复活视频
//     VideoProp1: 4,//  游戏界面道具1视频
//     VideoProp2: 5,// 游戏界面道具2视频
//     VideoProp3: 6,// 游戏界面道具3视频
//     VideoDoubleRedNum: 7,// 双倍红包
//     InsertAD: 8,//插屏
//     Banner:9,// Banner
// };

// 渠道枚举
AppConst.channel = {
    QQMiniGame: "QQMiniGame",
    WXMiniGame: "WXMiniGame",
    VIVOMiniGame: "VIVOMiniGame",
    OPPOMiniGame: "OPPOMiniGame",
    BDMiniGame: "BDMiniGame",
    TTMiniGame: "TTMiniGame",
    ANDROID: "ANDROID",
    IOS: "IOS",
    H5: "H5",
};

// sdk广告参数枚举
const sdkConfig = {
    QQMiniGame: { videoId: "", bannerId: "" },
    WXMiniGame: { videoId: "", bannerId: "" },
    VIVOMiniGame: { videoId: "", bannerId: "", insertADId: "", nativeId: "" },
    OPPOMiniGame: { videoId: "", bannerId: "", insertADId: "", insertViodeoId: "" },
    BDMiniGame: { videoId: "", bannerId: "", appSid: ""},
    TTMiniGame: { videoId: "", bannerId: "", recorderId: "" },
    ANDROID: { videoId: 1, bannerId: 0, insertId: 2 },// int
    IOS: { videoId: "", bannerId: "" },
    H5: { videoId: "H5 videoId", bannerId: "H5 bannerId" },

};

// 可修改项
AppConst.SERVER = servers.TEST;// 切换环境
AppConst.CHANNEL = AppConst.channel.ANDROID;// 切换渠道
AppConst.VERSION = '1.0.0';// 版本
AppConst.SHOWADUI = true;// 是否展示广告UI
AppConst.DEBUG = false;
AppConst.ANALYTICS = false;// 启用CCC统计
// 自动获取无需修改
AppConst.SDKCONFIG = sdkConfig[AppConst.CHANNEL];//sdk广告参数
// AppConst.WSURL = wsUrl[AppConst.SERVER];//长连接URL
// AppConst.HTTPURL = httpUrl[AppConst.SERVER];//短连接URL
// AppConst.SHAREIMAGEURL = shareImageUrl[AppConst.SERVER];// 分享图片URL


